package com.eastjet.maintenance.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 领用出库
 * @TableName acceptance_outbound
 */
@TableName(value ="acceptance_outbound")
@Data
public class AcceptanceOutbound implements Serializable {
    /**
     * 领用出库主键id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 出库单号
     */
    private String outboundNumber;

    /**
     * 出库主题
     */
    private String outboundTheme;

    /**
     * 出库类型
     */
    private String outboundType;

    /**
     * 出库日期
     */
    private Date outboundDate;

    /**
     * 出库申请人
     */
    private String outboundApplicant;

    /**
     * 所在部门
     */
    private String department;

    /**
     * 领用单号
     */
    private String receiptNumber;

    /**
     * 领用主题
     */
    private String receiptTheme;

    /**
     * 领用申请人
     */
    private String applicants;

    /**
     * 所在部门
     */
    private String department2;

    /**
     * 仓库名称
     */
    private String warehouseName;

    /**
     * 仓库管理员
     */
    private String warehouseAdministrator;

    /**
     * 出库人员
     */
    private String outboundPersonnel;

    /**
     * 所在部门
     */
    private String department3;

    /**
     * 备注
     */
    private String remark;

    /**
     * 创建人
     */
    private String createdBy;

    /**
     * 创建时间
     */
    private Date creationTime;

    /**
     * 更新人
     */
    private String updater;

    /**
     * 更新时间
     */
    private Date updated;

    /**
     * 逻辑删除
     */
    private Integer tombstone;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        AcceptanceOutbound other = (AcceptanceOutbound) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getOutboundNumber() == null ? other.getOutboundNumber() == null : this.getOutboundNumber().equals(other.getOutboundNumber()))
            && (this.getOutboundTheme() == null ? other.getOutboundTheme() == null : this.getOutboundTheme().equals(other.getOutboundTheme()))
            && (this.getOutboundType() == null ? other.getOutboundType() == null : this.getOutboundType().equals(other.getOutboundType()))
            && (this.getOutboundDate() == null ? other.getOutboundDate() == null : this.getOutboundDate().equals(other.getOutboundDate()))
            && (this.getOutboundApplicant() == null ? other.getOutboundApplicant() == null : this.getOutboundApplicant().equals(other.getOutboundApplicant()))
            && (this.getDepartment() == null ? other.getDepartment() == null : this.getDepartment().equals(other.getDepartment()))
            && (this.getReceiptNumber() == null ? other.getReceiptNumber() == null : this.getReceiptNumber().equals(other.getReceiptNumber()))
            && (this.getReceiptTheme() == null ? other.getReceiptTheme() == null : this.getReceiptTheme().equals(other.getReceiptTheme()))
            && (this.getApplicants() == null ? other.getApplicants() == null : this.getApplicants().equals(other.getApplicants()))
            && (this.getDepartment2() == null ? other.getDepartment2() == null : this.getDepartment2().equals(other.getDepartment2()))
            && (this.getWarehouseName() == null ? other.getWarehouseName() == null : this.getWarehouseName().equals(other.getWarehouseName()))
            && (this.getWarehouseAdministrator() == null ? other.getWarehouseAdministrator() == null : this.getWarehouseAdministrator().equals(other.getWarehouseAdministrator()))
            && (this.getOutboundPersonnel() == null ? other.getOutboundPersonnel() == null : this.getOutboundPersonnel().equals(other.getOutboundPersonnel()))
            && (this.getDepartment3() == null ? other.getDepartment3() == null : this.getDepartment3().equals(other.getDepartment3()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()))
            && (this.getCreatedBy() == null ? other.getCreatedBy() == null : this.getCreatedBy().equals(other.getCreatedBy()))
            && (this.getCreationTime() == null ? other.getCreationTime() == null : this.getCreationTime().equals(other.getCreationTime()))
            && (this.getUpdater() == null ? other.getUpdater() == null : this.getUpdater().equals(other.getUpdater()))
            && (this.getUpdated() == null ? other.getUpdated() == null : this.getUpdated().equals(other.getUpdated()))
            && (this.getTombstone() == null ? other.getTombstone() == null : this.getTombstone().equals(other.getTombstone()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getOutboundNumber() == null) ? 0 : getOutboundNumber().hashCode());
        result = prime * result + ((getOutboundTheme() == null) ? 0 : getOutboundTheme().hashCode());
        result = prime * result + ((getOutboundType() == null) ? 0 : getOutboundType().hashCode());
        result = prime * result + ((getOutboundDate() == null) ? 0 : getOutboundDate().hashCode());
        result = prime * result + ((getOutboundApplicant() == null) ? 0 : getOutboundApplicant().hashCode());
        result = prime * result + ((getDepartment() == null) ? 0 : getDepartment().hashCode());
        result = prime * result + ((getReceiptNumber() == null) ? 0 : getReceiptNumber().hashCode());
        result = prime * result + ((getReceiptTheme() == null) ? 0 : getReceiptTheme().hashCode());
        result = prime * result + ((getApplicants() == null) ? 0 : getApplicants().hashCode());
        result = prime * result + ((getDepartment2() == null) ? 0 : getDepartment2().hashCode());
        result = prime * result + ((getWarehouseName() == null) ? 0 : getWarehouseName().hashCode());
        result = prime * result + ((getWarehouseAdministrator() == null) ? 0 : getWarehouseAdministrator().hashCode());
        result = prime * result + ((getOutboundPersonnel() == null) ? 0 : getOutboundPersonnel().hashCode());
        result = prime * result + ((getDepartment3() == null) ? 0 : getDepartment3().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        result = prime * result + ((getCreatedBy() == null) ? 0 : getCreatedBy().hashCode());
        result = prime * result + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode());
        result = prime * result + ((getUpdater() == null) ? 0 : getUpdater().hashCode());
        result = prime * result + ((getUpdated() == null) ? 0 : getUpdated().hashCode());
        result = prime * result + ((getTombstone() == null) ? 0 : getTombstone().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", outboundNumber=").append(outboundNumber);
        sb.append(", outboundTheme=").append(outboundTheme);
        sb.append(", outboundType=").append(outboundType);
        sb.append(", outboundDate=").append(outboundDate);
        sb.append(", outboundApplicant=").append(outboundApplicant);
        sb.append(", department=").append(department);
        sb.append(", receiptNumber=").append(receiptNumber);
        sb.append(", receiptTheme=").append(receiptTheme);
        sb.append(", applicants=").append(applicants);
        sb.append(", department2=").append(department2);
        sb.append(", warehouseName=").append(warehouseName);
        sb.append(", warehouseAdministrator=").append(warehouseAdministrator);
        sb.append(", outboundPersonnel=").append(outboundPersonnel);
        sb.append(", department3=").append(department3);
        sb.append(", remark=").append(remark);
        sb.append(", createdBy=").append(createdBy);
        sb.append(", creationTime=").append(creationTime);
        sb.append(", updater=").append(updater);
        sb.append(", updated=").append(updated);
        sb.append(", tombstone=").append(tombstone);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}